package com.cloudlinkscm.loms.services.base.notify.service;

import com.cloudlinkscm.loms.services.base.notify.assemblers.InsertAccountModelAssembler;
import com.cloudlinkscm.loms.services.base.notify.dao.TenantEmailAccountDao;
import com.cloudlinkscm.loms.services.base.notify.dto.InsertAccountDto;
import com.cloudlinkscm.loms.services.base.notify.model.entity.TenantEmailAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : tac
 * @date : 2017/6/15
 */

@Service
public class TenantAccountService {
    private TenantEmailAccountDao dao;

    @Autowired
    public TenantAccountService(TenantEmailAccountDao dao) {
        this.dao = dao;
    }

    public String insertAccount(InsertAccountDto dto) {
        TenantEmailAccount account = new InsertAccountModelAssembler().toBo(dto);
        //todo::
//        dao.insert(account);
        return account.getId();
    }

}
